<?php    
    require_once '../framework/config.php';

    require_once('simpletest/unit_tester.php');
    require_once('simpletest/reporter.php');

    $test = &PEAR::getStaticProperty('CONFIG_INI','TEST');
    ini_set("max_execution_time",$test['max_execution_time']);

    $test = &new TestSuite('All file tests');


    $test->addTestFile('AdminShowGuideTest.php');
    $test->addTestFile('AdminAddGuideTest.php');
    $test->addTestFile('AdminAddSlideTest.php');
    $test->addTestFile('AdminGuideListTest.php');    
    $test->addTestFile('AdminEditGuideTest.php');
    $test->addTestFile('AdminShowRouteTest.php');
    $test->addTestFile('AdminEditSlideTest.php');
    $test->addTestFile('AdminMenuTest.php');
    $test->addTestFile('GuideListTest.php');
    $test->addTestFile('ShowRouteTest.php');
    $test->addTestFile('ShowSlideTest.php');
    $test->addTestFile('MenuTest.php');
    $test->addTestFile('MimeTypeTest.php');
    $test->addTestFile('SendImageTest.php');
    $test->addTestFile('SendVideoTest.php');
    $test->addTestFile('AuthContainerSQLite3Test.php');
    $test->addTestFile('AdminAuthTest.php');
    $test->addTestFile('RedirectTest.php');
    $test->addTestFile('PDFTest.php');
    $test->addTestFile('AdminSendCodeTest.php');
    $test->addTestFile('LocalizationTest.php');
    $test->addTestFile('DirectionsTest.php');
    $test->addTestFile('AdminCSSSwitchTest.php');

    if ( isset($_SERVER["HTTP_HOST"]) )
    {
        $reporter  = new HtmlReporter(); 
    }

    $reporter = isset($reporter) ? $reporter : (new TextReporter()) ;
    $test->run( $reporter  );
?>


